import Request from "@/service/request/service";

const config = {
    baseURL: '',
    timeout: 3000
}
// 请求成功回调函数
const reqSuccessFn = (config) => {
    console.log('请求成功回调函数');
    return config
}
// 请求失败回调函数
const reqFailFn = (err) => {
    console.log('请求失败回调函数');
    return err
}
// 响应成功回调函数
const respSuccessFn = (config) => {
    console.log('响应成功回调函数');
    return config
}
// 响应失败回调函数
const respFailFn = (err) => {
    console.log('响应失败回调函数');
    return err
}

export const request_two = new Request(config, reqSuccessFn, reqFailFn, respSuccessFn, respFailFn);